﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManaSky.DBCore.Models
{
    /// <summary>
    /// ** 描述：分页查询基类
    /// </summary>
    public class PageModel
    {
        /// <summary>
        /// 排序字段
        /// </summary>
        public string OrderBy { get; set; } = string.Empty;

        /// <summary>
        /// 排序方向（顺序or倒序）
        /// </summary>
        public string Direction { get; set; } = string.Empty;

        /// <summary>
        /// 每页显示数量
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
    }
}
